#include <iostream>
#include "fib.hpp"

using namespace std;

int fib(int num)
{   
    int a=0;
    int b=1;
    cout << a<< " " << b << endl;
    int i,sum=0;
    for(i = 0; i < num ; i++) 
    {
        sum = a + b;
        a = b;
        b = sum;
        cout << sum <<" ";
    }
    return 0;

}

